home *** CD-ROM | disk | FTP | other *** search
/ Software USA 4 #10 / Software USA Volume 4.10.iso / mac / Educational / Googolator / Inputs / nasty.run < prev    next >
Text File  |  1996-09-28  |  1KB  |  55 lines

  1. { This nasty input file attempts to test most of Googolator's code,
  2.   particularly the rarely used parts.
  3. }
  4.  
  5. '' { produces a blank line }
  6. "BASIC ARITHMETIC:"
  7. "2+3 = "; 2+3
  8. "2-3 = "; 2-3
  9. "2*3 = "; 2*3
  10. "2/3 = "; 2/3
  11. "2^3 = "; 2^3
  12. "2! = "; 2!
  13. ''
  14. "THESE EXPRESSIONS ARE SYNTACTICALLY CORRECT:"
  15. "(1) = "; (1)
  16. "((1)) = "; ((1))
  17. "1+2-3*4^5 = "; 1+2-3*4^5
  18. "1+(2-(3*(4^5))) = "; 1+(2-(3*(4^5)))
  19. ''
  20. "SYNTACTIC ERRORS:"
  21. "( = "; (
  22. "() = "; ()
  23. "(1+ = "; (1+
  24. "(1+) = "; (1+)
  25. "1+) = "; 1+)
  26. "1) = "; 1)
  27. ") = "; )
  28. "(1)) = "; (1))
  29. ''
  30. "SEMANTIC ERRORS:"
  31. "1/0 = "; 1/0
  32. "-2^2 = "; -2^2
  33. ''
  34. "CORRECT STRINGS:"
  35. 'Hello!'
  36. "2^3 = "; 2^3; " and 3^2 = "; 3^2
  37. ''  { prints a blank line }
  38. ''; { this won't }
  39. "There should be ONE blank line above this sentence."
  40. "This sentence should";'';"";" appear on ";'a';" line by itself."
  41. 'This sentence contains "double quotes".'
  42. ''
  43. "BAD STRINGS:"
  44. "A string is not allowed to contain an eol token.
  45. 'And don't make this mistake!'
  46. ''
  47. "RUNNING FILES:"
  48. run test
  49. run empty     { empty file }
  50. run nested0   { nested files }
  51. run toomany   { infinitely nested files }
  52. {run comment} { file with unfinished comment }
  53. ''
  54. "Done.  I hope you were watching closely!"
  55.